{
GtkWidgetClass *klass = GTK_WIDGET_GET_CLASS (widget);
GtkWidgetPrivate *priv;
- graphene_rect_t bounds;
GtkCssValue *filter_value;
RenderMode mode;
double opacity;
filter_value = _gtk_style_context_peek_property (_gtk_widget_get_style_context (widget), GTK_CSS_PROPERTY_FILTER);
gtk_css_filter_value_push_snapshot (filter_value, snapshot);
- graphene_rect_init (&bounds,
- offset_clip.x,
- offset_clip.y,
- offset_clip.width,
- offset_clip.height);
-
style = gtk_css_node_get_style (priv->cssnode);
get_box_margin (style, &margin);
get_box_border (style, &border);
if (mode == RENDER_DRAW)
{
cairo_t *cr;
+ graphene_rect_t bounds;
+
+ graphene_rect_init (&bounds,
+ offset_clip.x,
+ offset_clip.y,
+ offset_clip.width,
+ offset_clip.height);
- cr = gtk_snapshot_append_cairo (snapshot,
+ cr = gtk_snapshot_append_cairo (snapshot,
&bounds, "Fallback<%s>",
G_OBJECT_TYPE_NAME (widget));
gtk_widget_draw_internal (widget, cr);
*/
gboolean result;
cairo_t *cr;
+ graphene_rect_t bounds;
+
+ graphene_rect_init (&bounds,
+ offset_clip.x,
+ offset_clip.y,
+ offset_clip.width,
+ offset_clip.height);
- cr = gtk_snapshot_append_cairo (snapshot,
+ cr = gtk_snapshot_append_cairo (snapshot,
&bounds,
"DrawSignalContents<%s>", G_OBJECT_TYPE_NAME (widget));
g_signal_emit (widget, widget_signals[DRAW], 0, cr, &result);